//
//  CustormSliderView.h
//  17LoanTemplate
//
//  Created by gynjobs on 2017/8/25.
//  Copyright © 2017年 cangming. All rights reserved.
//

#import "BaseCommondView.h"
@class CustormSliderView;

@protocol CustormSliderViewDelegate <NSObject>

- (void)sliderViewDidPanDelegateWithContinuousData:(NSString *)conData
                                          andIndex:(NSInteger)index
                                     andSliderView:(CustormSliderView *)sliderView;

@end

@interface CustormSliderView : BaseCommondView

@property (nonatomic,weak) id <CustormSliderViewDelegate> delegate;

@property (nonatomic, assign) NSInteger         initAmount;
@property (nonatomic, assign) CGFloat           sliderViewCornerRadius;
@property (nonatomic, strong) CAGradientLayer  *gradientLayer;

@property (nonatomic, strong) UIImageView  *slider;
@property (nonatomic, assign) NSInteger     dataMax;
@property (nonatomic, assign) NSInteger     dataMin;
@property (nonatomic, assign) NSInteger     dataPrecise;

+ (instancetype)sliderWithMax:(NSInteger)max andMin:(NSInteger)min andPrecise:(NSInteger)precise;
@end
